package gui;

import javax.swing.JTextArea;

public class PanelMessagesLog extends javax.swing.JPanel {

	private static final long serialVersionUID = 1L;
	private javax.swing.JLabel labelTitle;
	private javax.swing.JScrollPane scrollPaneMessages;
	private javax.swing.JTextArea textAreaMessages;

	public PanelMessagesLog() {
		initComponents();
	}

	public JTextArea getTextAreaMessages() {
		return textAreaMessages;
	}

	private void initComponents() {

		labelTitle = new javax.swing.JLabel();
		scrollPaneMessages = new javax.swing.JScrollPane();
		textAreaMessages = new javax.swing.JTextArea();

		labelTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		labelTitle.setText("Messages");

		textAreaMessages.setColumns(20);
		textAreaMessages.setEditable(false);
		textAreaMessages.setRows(5);
		scrollPaneMessages.setViewportView(textAreaMessages);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.TRAILING)
												.addComponent(
														scrollPaneMessages,
														javax.swing.GroupLayout.Alignment.LEADING,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														357, Short.MAX_VALUE)
												.addComponent(
														labelTitle,
														javax.swing.GroupLayout.Alignment.LEADING,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														357, Short.MAX_VALUE))
								.addContainerGap()));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(labelTitle)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(scrollPaneMessages,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										232, Short.MAX_VALUE).addContainerGap()));
	}
}
